Skip to content

Refactor latest DagRun load options for consistency#67911

Open
henry3260 wants to merge 1 commit into
apache:mainfrom
henry3260:use-factory-function-in-collection
Open

Refactor latest DagRun load options for consistency#67911
henry3260 wants to merge 1 commit into
apache:mainfrom
henry3260:use-factory-function-in-collection

Conversation

@henry3260

Copy link
Copy Markdown
Contributor

related : https://github.com/apache/airflow/pull/66488/changes/BASE..846d67b3fa51e5395fa5600aeb50555ddbaa34eb#r3341564478

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@henry3260

Copy link
Copy Markdown
Contributor Author

cc @jason810496

@eladkal eladkal added this to the Airflow 3.3.0 milestone Jun 7, 2026
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 7, 2026
@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jun 8, 2026
@henry3260
henry3260 requested a review from jason810496 July 4, 2026 12:50

@SameerMesiah97 SameerMesiah97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. It looks like you have replaced all repeated blocks of code in this file with an invocation to _build_latest_run_load_options. I do question the value of this refactor as duplicated block is fairly small, and having the loaded columns visible at each query makes the intent a bit more explicit. But I will not block the PR for such a subjective concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:DAG-processing ready for maintainer review Set after triaging when all criteria pass. type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants